FROM nginx:1.23.4-alpine
#版本更新信息 本地src/lib/lexicon.index.ts（version）
#在/xcsys目录下运行 docker build -t helpsrv:v2.0.8 .

#运行目录
ENV WEB_CONF /usr/local/xcsys/svc
ENV XCSYS_HOME ${WEB_CONF}/dist
ENV SVC_NAME helpSrv
#环境变量
ENV PATH $XCSYS_HOME:$PATH
RUN mkdir -p "${XCSYS_HOME}/userDoc"
RUN mkdir -p "${XCSYS_HOME}/devDoc"
RUN mkdir -p "${WEB_CONF}/conf"
RUN mkdir -p "${WEB_CONF}/mime"
RUN cp -Rf /etc/nginx/nginx.conf ${WEB_CONF}/conf/
RUN cp -Rf /etc/nginx/mime.types ${WEB_CONF}/mime/
RUN ln -sf ${WEB_CONF}/conf/nginx.conf /etc/nginx/nginx.conf
RUN ln -sf ${WEB_CONF}/mime/mime.types /etc/nginx/mime.types
#linux
COPY ./userDoc  ${XCSYS_HOME}/userDoc
COPY ./devDoc   ${XCSYS_HOME}/devDoc